<ion-view view-title="订单详情">
 	<ion-content class="has-footer">
	 	<ion-refresher
				pulling-text="刷新订单..."
				on-refresh="doRefresh()">
		</ion-refresher>
		<ion-list>
			<ion-item class="item-divier item-stable">
				<span>订单编号:{{order.oid}}</span>
			</ion-item>
			<ion-item>
				<span>订单总额:</span>
				<span style="float:right;color:darkorange;">{{order.total}}元</span>
			</ion-item>
			<ion-item>
				<span>订单状态:</span>
				<span style="float:right;color:darkorange;">{{order.stateStr}}</span>
			</ion-item>
			<ion-item>
				<span>下单时间:</span>
				<span style="float:right">{{order.ordertime}}</span>
			</ion-item>
			
			<ion-item class="item-divier item-stable">
				<span>配送信息</span>
			</ion-item>
			<ion-item>
				<span>收货地址:</span>
				<span style="float:right">{{order.addr}}</span>
			</ion-item>
			<ion-item>
				<span>收货人:</span>
				<span style="float:right">{{order.name}}</span>
			</ion-item>
			<ion-item>
				<span>手机:</span>
				<span style="float:right">{{order.phone}}</span>
			</ion-item>
			
			<ion-item class="item-divier item-stable">商品清单</ion-item>
			<ion-item class="item-thumbnail-left" ng-repeat="orderItem in orderItems" href="#">
				<img class="full-image" ng-src="{{orderItem.thumbnail}}" >
	          	<h2>{{orderItem.pname}}</h2>
	          	<p>{{orderItem.standard}}</p>
	        	<span style="font-size:20px;font-weight:bold;color:darkorange">{{orderItem.shop_price}}元</span>
	        	<span style="float:right">数量：{{orderItem.count}}</span>
			</ion-item>	
		</ion-list>
		
 	</ion-content>
 	<ion-footer-bar class="bar-footer" style="height:50px">
 		<a ng-if="notpaid" ng-click="payOrder()" class="button button-energized button-large" style="float:left;width:100%;">立即支付</a>
 		<a ng-if="ontheway" ng-click="updateState()" class="button button-balanced button-large" style="float:left;width:100%;">确认收货</a>
 	</ion-footer-bar>
</ion-view>